﻿using Microsoft.Phone.Controls;
using SmarterCharger.App.Infrastructure.Interfaces;
using System;
using System.Windows;

namespace SmarterCharger.App.Infrastructure
{
    internal class NavigationServiceWrapper : INavigationService
    {
        public bool Navigate(Uri source)
        {
            return RootFrame.Navigate(source);
        }

        private PhoneApplicationFrame RootFrame
        {
            get
            {
                return ((PhoneApplicationFrame)Application.Current.RootVisual);
            }
        }
    }
}
